<?php
namespace SampleModel;

class MysqlAccessor
{
    const OP_GREATER_THAN = ">";
    const OP_GREATER_EQUAL = ">=";
    const OP_LESS_THAN = "<";
    const OP_LESS_EQUAL = "<=";
    const OP_EQUAL = "=";
    const OP_NOT_EQUAL = "<>";
    const OP_IN = "IN";
    const OP_NOT_IN = "NOT IN";
    const OP_LIKE = "LIKE";
    const OP_NOT_LIKE = "NOT LIKE";

    public $connection = null;


    public $forceMaster = false;
    public $readOnly = true;

    /**
     * @param string $modelName
     * @param string $splitSuffix
     *
     * @return MysqlAccessor
     */
    public static function useModel($modelName, $splitSuffix = "")
    {
    }

    /**
     * @param bool|true $forceMaster
     *
     * @return MysqlAccessor
     */
    public function forceMaster($forceMaster = true)
    {
    }

    /**
     * @return MysqlAccessor
     */
    public function distinct()
    {
    }

    /**
     * @return int
     */
    public function delete()
    {
    }

    /**
     * @param string $field
     * @param bool|true $desc
     *
     * @return MysqlAccessor
     */
    public function sort($field, $desc = true)
    {
    }

    /**
     * @param string $field
     * @param string|array $value
     *
     * @return MysqlAccessor
     */
    public function setField($field, $value)
    {
    }

    /**
     * @return int
     */
    public function update()
    {
    }

    /**
     * @param string $type
     *
     * @return int
     */
    public function insert($type = "INSERT")
    {
    }

    /**
     * @param array $selectedFields
     *
     * @return array
     */
    public function find($selectedFields = array())
    {
    }

    /**
     * @param string $name
     * @param string|array $value
     * @return MysqlAccessor
     */
    public function filter($name, $value)
    {
    }

    /**
     * @param string $field
     * @param string $operation
     * @param string|array $value
     *
     * @return MysqlAccessor
     */
    public function filterByOperation($field, $operation, $value)
    {
    }

    /**
     * @param int $rowCount
     * @param int $offset
     *
     * @return MysqlAccessor
     */
    public
    function limit($rowCount, $offset = 0)
    {
    }

    public static function closeConnections()
    {
    }
}